package zhu.areas.tenderbid.service;

import java.util.List;

import zhu.areas.tenderbid.dao.ITenderDispDAO;
import zhu.areas.tenderbid.data.TenderDisp;
import zhu.areas.tenderbid.data.TenderDispPK;

public class TenderDispServiceImpl   implements  ITenderDispService   {

	private  ITenderDispDAO  tenderDispDAO;
	
	public ITenderDispDAO getTenderDispDAO() {
		return tenderDispDAO;
	}
	
	public void setTenderDispDAO(ITenderDispDAO tenderDispDAO) {
		this.tenderDispDAO = tenderDispDAO;
	}

	
	
	public Boolean addTenderDisp(TenderDisp tenderDisp) {
		tenderDispDAO.save(tenderDisp);
		return true;
	}

	
	public TenderDisp getTenderDispByID(TenderDispPK id) {
		
		return (TenderDisp) tenderDispDAO.findById(TenderDisp.class, id);
	}
	
	
}
